import React from 'react';
import { View, Text, Modal, ActivityIndicator } from 'react-native';
import styles from './styles';

class ModalUI extends React.Component {
  render() {
    return (
      <Modal transparent={true}
        onRequestClose={()=>{}}
        visible={this.props.show}>
          <View style={styles.mainViewStyle}>
            <Text style={styles.textStyle}>
              {this.props.prompt}
            </Text>
            <ActivityIndicator animating={true}
              color={'blue'}
              size={'large'}
            />
          </View>
      </Modal>
    )
  }
}

export default ModalUI;
